package com.tencent.sr.iris.basic.saas.service.poster;

import com.tencent.sr.iris.basic.saas.dependency.poster.InvitePosterManageDependency;
import com.tencent.sr.iris.basic.service.interfaces.request.poster.AddOrUpdateInvitePosterRequest;
import com.tencent.sr.iris.basic.service.interfaces.request.poster.InvitePosterCommonRequest;
import com.tencent.sr.iris.basic.service.interfaces.request.poster.InvitePosterMoveRequest;
import com.tencent.sr.iris.basic.service.interfaces.response.poster.InvitePosterDetailResponse;
import com.tencent.sr.iris.basic.service.interfaces.response.poster.InvitePosterListResponse;
import com.tencent.sr.rmall.common.primitive.HttpResult;
import com.tencent.sr.rmall.common.request.PaginationRequest;
import com.tencent.sr.rmall.common.response.PaginationResponse;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 邀请海报
 */
@Component
@Slf4j
public class InvitePosterService {

    @Resource
    private InvitePosterManageDependency invitePosterManageDependency;

    public HttpResult<Boolean> save(AddOrUpdateInvitePosterRequest request) {
        return invitePosterManageDependency.save(request);
    }
    public HttpResult<Boolean> update(AddOrUpdateInvitePosterRequest request) {
        return invitePosterManageDependency.update(request);
    }

    public HttpResult<Boolean> delete(InvitePosterCommonRequest request) {
        return invitePosterManageDependency.delete(request);
    }

    public HttpResult<InvitePosterDetailResponse> detail(InvitePosterCommonRequest request) {
        return invitePosterManageDependency.detail(request);
    }

    public HttpResult<PaginationResponse<InvitePosterListResponse>> list(
            PaginationRequest<InvitePosterCommonRequest> request) {
        return invitePosterManageDependency.list(request);
    }

    public HttpResult<Boolean> move(InvitePosterMoveRequest request) {
        return invitePosterManageDependency.move(request);
    }
}
